package com.gjy.design.responsibility.r1;

/**
 * @author gjy
 * @version 1.0
 * @since 2025-11-11 11:06:23
 */
public abstract class AbstractHandler implements Handler {
    private Handler next;

    @Override
    public void setNext(Handler next) {
        this.next = next;
    }

    @Override
    public void handleRequest(String request) {
        if (next != null) {
            next.handleRequest(request);
        }
    }

}
